package com.icode.core.model.house;

import com.icode.core.model.AbstractEntity;

import javax.persistence.*;

/**
 * Created with IntelliJ IDEA.
 * User: SunKai
 * Date: 14-10-23
 * Time: 下午3:51
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name="house_info_bed_type")
public class HouseInfoBedType extends AbstractEntity{
    @ManyToOne
    @JoinColumn(name="house_info_id")
    private HouseInfo houseInfo;

    @Column(name="bed_type")
    @Enumerated(EnumType.STRING)
    private BedType bedType;
    public HouseInfoBedType() {
    }

    public HouseInfoBedType(HouseInfo houseInfo, BedType bedType) {
        this.houseInfo = houseInfo;
        this.bedType = bedType;
    }
}
